<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/9/28 0028
  Time: 14:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!--输出,条件,迭代标签库-->

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="fmt"%> <!--数据格式化标签库-->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="sql"%> <!--数据库相关标签库-->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="fn"%> <!--常用函数标签库-->

<html>
<head>
    <title>用户分页</title>
</head>
<body>

<form action="userSearch.jhtml">
    <input type="text" placeholder="姓名" name="name" value="${name}"/>
    <input type="text" placeholder="开始入职日期" name="start"/>
    <input type="text" placeholder="截止入职日期" name="end"/>
    <input type="submit" />
</form>
${userDelmsg}
<h2><a href="../../userAdd.jsp">用户增加</a></h2>

<h3>分页查询</h3>
<table border="1">
      <tr>
           <td>用户编码</td>
           <td>用户名称</td>
           <td>用户密码</td>
           <td>用户姓名</td>
           <td>电话号码</td>
           <td>用户单位</td>
           <td>用户角色</td>
           <td>地标</td>
           <td>入职日期</td>
           <td>删除</td>
          <td>修改</td>
       </tr>
    <c:forEach items="${p.data}" var="u">

        <tr>
            <td>${u.id}</td>
            <td>${u.userName}</td>
            <td>${u.password}</td>
            <td>${u.name}</td>
            <td>${u.telephone}</td>
            <td>${u.unit}</td>
            <td>${u.roleName}</td>
            <td>${u.landMark}</td>
            <td>${u.enterdate}</td>
            <td>
                <a href="/userDel-${u.id}.jhtml">删除</a>
            </td>
            <td>
                <a href="/userGet-${u.id}.jhtml">修改</a>
            </td>
        </tr>
    </c:forEach>
</table>
<p >
    <a href="?pageNo=1">首页</a>
    <a href="?pageNo=${pageNo-1}">上一页</a>
    ${pageNo}
    <a href="?pageNo=${pageNo+1}">下一页</a>
</p>
<h2><a href="userSearch.jhtml">用户查询</a></h2>
<h2><a href="professorSearch.jhtml">专家查询</a></h2>
</body>
</html>
